package com.teamall.web.sys.db.dao.mapper;

import com.teamall.web.sys.db.arg.TownAidOrgArg;
import com.teamall.web.sys.db.po.TownAidOrgPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ITownAidOrgMapper {
    
    List<Integer> countByArg(TownAidOrgArg arg);

    List<TownAidOrgPO> selectByArg(TownAidOrgArg arg);

    TownAidOrgPO selectByPrimaryKey(Integer id);

    List<TownAidOrgPO> selectByArgAndPage(TownAidOrgArg arg, RowBounds rowBound);

    int insert(TownAidOrgPO record);

    int insertSelective(TownAidOrgPO record);

    int insertBatch(@Param("list") List<TownAidOrgPO> records);

    int updateByArgSelective(@Param("record") TownAidOrgPO record,
                             @Param("arg") TownAidOrgArg arg);

    int updateByArg(@Param("record") TownAidOrgPO record,
                    @Param("arg") TownAidOrgArg arg);

    int updateByPrimaryKeySelective(TownAidOrgPO record);

    int updateByPrimaryKey(TownAidOrgPO record);
    
    int deleteByArg(TownAidOrgArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}